import request from '../utils/request.js'


//获取所有符合条件的用户数据并且分页查询
export const Search = (data) => {
    return request.get('/user/search', {
        params: data // 将参数附加到 URL 查询字符串
    });
}

// 删除用户
export const Delete = (data) => {
    return request.put('/user/deleteuser', data);
}
// 添加用户
export const Add = (data) => {
    return request.post('/user/adduser',data)
}
// 修改用户
export const Update = (data) => {
    return request.put('/user/update',data)
}
//得到所有非删除的老师信息
export const GetAllTeacher = () => {
    return request.get('/user/getTeacherList')
}
export const GetUserId = (data) => {
    return request.get(`/user/${data}`, {
    });
}
export const ResetData = (data) => {
    return request.put('/user/resetdata',data)
}
